var houseAppoDetail = ({
	getDtailById : function (){
//		$$.showPreloader("加载中");
		$.ajax({
			type : "POST",
			dataType : 'json',
			url : "../appointment/getById.do",
			data : {
				appointmentId : appointmentId
			},
			success : function(data) {
				var ret = data.appoint;
				$("#houseAddr").text(data.house.houseDetail.address);
				$("#houseName").text(data.house.houseDetail.houseName);
				$("#nickName").text(ret.nickName);
				$("#phone").text(ret.phone);
				$("#appointmentTime").text(ret.appointmentTime);
				$("#userRemark").text(ret.userRemark);
				$("#status").text(statusArr[ret.status]);
				$("#opt_status").val(ret.status);
				$("#handlerRemark").val(ret.handlerRemark);
//				$$.hidePreloader();
			},
			error: function(){
				$$.hidePreloader();
			}
		});
	},
	edit : function (){
		$$.showPreloader("修改中");
		$.ajax({
			type : "POST",
			dataType : 'json',
			url : "../appointment/edit.do",
			data : {
				appointmentId : appointmentId,
				status : $("#opt_status").val(),
				handlerRemark :$("#handlerRemark").val()
			},
			success : function(data) {
				$$.hidePreloader();
				if(data.resultCode==0){
					$$.alert(data.msg);
					houseAppoDetail.getDtailById();
				}
				
			},
			error: function(){
				$$.hidePreloader();
			}
		});
	},
})